package cn.vivi.design.combination;

public class Client {

    public static void main(String[] args) {
        MenuComponent level2 = new Menu("菜单管理", 2);

        level2.add(new MenuItem("页面访问", 3));
        level2.add(new MenuItem("展开菜单", 3));

        Menu level1 = new Menu("系统管理", 1);
        level1.add(level2);

        level1.print();
    }

}
